package com.ch.clinking.bean;

import java.io.Serializable;

public class OrderInfo implements Serializable {

    private String image;

    private String title;

    private Integer finalNum = 0;

    private Integer proposedNum = 0;

    public OrderInfo() {
    }

    public OrderInfo(String title, Integer stock) {
        this.title = title;
        this.finalNum = stock;
    }

    public OrderInfo(String title, String image) {
        this.title = title;
        this.image = image;
        this.finalNum = 0;
    }

    public OrderInfo(String title, String image, int finalNum) {
        this.title = title;
        this.image = image;
        this.finalNum = finalNum;
    }

    public OrderInfo(String title, String image, int finalNum, int proposedNum) {
        this.title = title;
        this.image = image;
        this.finalNum = finalNum;
        this.proposedNum = proposedNum;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getFinalNum() {
        return finalNum;
    }

    public Integer getProposedNum() {
        return proposedNum;
    }

    public void setProposedNum(Integer proposedNum) {
        this.proposedNum = proposedNum;
    }

    public void setFinalNum(Integer finalNum) {
        this.finalNum = finalNum;
    }


    @Override
    public String toString() {
        return "OrderInfo{" +
                "image='" + image + '\'' +
                ", title='" + title + '\'' +
                ", finalNum=" + finalNum +
                ", proposedNum=" + proposedNum +
                '}';
    }
}
